Use offsetof instead of own definition
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 11 Jul 2010 18:34:43 +0000 (20:34 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 11 Jul 2010 18:34:43 +0000 (20:34 +0200)
commite76931344f68d93aaf2657a0c281e7af9aac74db
tree191c733aa3befca12e00fc3585c3ce836bba0ebf
parent5fdaaa4f4eba857ffbc71bef46b50c82b564c6cb
Use offsetof instead of own definition

* lisp.h: Include <stddef.h>.
(OFFSETOF): Don't define.
(VECSIZE): Use offsetof instead of OFFSETOF.
(PSEUDOVECSIZE): Likewise.
* process.c (conv_sockaddr_to_lisp): Likewise.
* alloc.c: Don't include <stddef.h>.
* buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
src/ChangeLog
src/alloc.c
src/buffer.h
src/lisp.h
src/process.c